package com.wgt.startx.util;

import java.util.Collection;
import java.util.Map;

/**
 * Created by wgt on 2017/7/30.
 */
public class CollectionUtils {
    public static boolean isNotEmpty(Collection<?> collection){
        if (collection!=null&&collection.size()>0) return true;
        return false;
    }

    public static boolean isNotEmpty(Map<?,?> map){
        if (map!=null&&map.size()>0) return true;
        return false;
    }

    public static boolean isNotEmpty(Object[] objs){
        if (objs!=null&&objs.length>0) return true;
        return false;
    }
}
